<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:include="inc/examHeader::header">
</head>
	<body>
		<!--返回-->
		<div class="back" onclick="location='take.html'"><img src="/images/back.png" /></div>
		<div th:include="header :: header"></div>
		<div class="header-title">
			<span th:text="${paper.name}">测试</span>
		</div>
		<div class="spare-a">
			<div class="spare-add">
				<div class="take-a">
					<span th:text="'姓名：'+${session.user.userName}"></span>
					<span th:if="${paper.examType=='考试试卷'}" th:text="'总分：'+${paper.totalScore}"></span>
					<span th:if="${paper.examType=='考试试卷'}" th:text="'得分：'+${userScore}"></span>
					<span th:if="${paper.examType=='考试试卷'}" th:style="'color:'+@{(${tg>0.6} ? '#40c200': '#ff0000')} + ''" th:text="${tg>0.6}?'通过':'未通过'"></span>
				</div>
				<div class="nottake-b">
					<div class="paper-d-title" th:if="${paper.radioCount}" th:text="'单选题(每小题'+${paper.radioScore}+'分,共'+${paper.radioCount*paper.radioScore}+'分)'">一、单选题（每小题5.0分，共25.0分）</div>
					<div class="nottake-ba" th:if="${u.userAnswerRecord.code=='单选题'}" th:each="u:${questionList}">
						<div class="nottake-ba-title" th:text="'('+${u.userAnswerRecord.orderCode}+')'+${u.userAnswerRecord.content}">1、涉密场所应当按照国家有关规定经相关部门的安全技术检测，与境外机构、人员住所保持（）的安全距离。</div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.a)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('A')}?'nottake-bb active takeXq': 'nottake-bb takeXq'">
					    	<a th:text="'A.'+${u.userAnswerRecord.A}"></a>
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.b)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('B')}?'nottake-bb active takeXq': 'nottake-bb takeXq '">
					    	<a th:text="'B.'+${u.userAnswerRecord.B}"></a>
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.c)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('C')}?'nottake-bb active takeXq': 'nottake-bb takeXq'" >
					    	<a th:text="'C.'+${u.userAnswerRecord.C}"></a>
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.d)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('D')}?'nottake-bb active takeXq': 'nottake-bb takeXq'" >
					    	<a th:text="'D.'+${u.userAnswerRecord.D}"></a>
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.e)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('E')}?'nottake-bb active takeXq': 'nottake-bb takeXq'" >
					    	<a th:text="'E.'+${u.userAnswerRecord.E}"></a>
					    	<div class="documentation-check"></div>
					    </div>
                       <div th:class="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}?take-b:take-ecg"><a th:if="${paper.examType}=='考试试卷'">得分：<span  th:text="${u.userAnswerRecord.score}+'&nbsp;&nbsp;'"></span></a><a th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">正确答案：<span th:text="${u.userAnswerRecord.answer}"></span></a></div>
       	  	 		   <div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">答案解析：<span th:text="${u.userAnswerRecord.explain}"></span></div>
       	  	 		   <div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">关联章节：<span th:if="${dm!=null}" th:each="dm : ${u.chapterList}">
	       	  	 	   <span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 	   </span> 
       	  	 		   </div> 
					</div>
				</div>
				<div class="nottake-b">
					<div class="paper-d-title" th:if="${paper.checkCount}" th:text="'多选题(每小题'+${paper.checkScore}+'分,共'+${paper.checkCount*paper.checkScore}+'分)'">二、多选题（每小题5.0分，共25.0分）</div>
					<div class="nottake-ba" th:if="${u.userAnswerRecord.code=='多选题'}" th:each="u:${questionList}">
					<li >
						<div class="nottake-ba-title" th:text="'('+${u.userAnswerRecord.orderCode}+')'+${u.userAnswerRecord.content}">1、高校保密责任主体是。</div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.a)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('A')}?'nottake-bc active takeXq': 'nottake-bc takeXq'">
					    	<a th:text="'A.'+${u.userAnswerRecord.A}"></a>
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.b)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('B')}?'nottake-bc active takeXq': 'nottake-bc takeXq'">
					    	<a th:text="'B.'+${u.userAnswerRecord.B}"></a>
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.c)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('C')}?'nottake-bc active takeXq': 'nottake-bc takeXq'">
					    	<a th:text="'C.'+${u.userAnswerRecord.C}"></a>
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.d)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('D')}?'nottake-bc active takeXq': 'nottake-bc takeXq'">
					    	<a th:text="'D.'+${u.userAnswerRecord.D}"></a>
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:style="'display:'+@{(${#strings.isEmpty(u.userAnswerRecord.e)} ? 'none': 'block')} + ''"
					    th:class="${u.userAnswerRecord.userAnswer.contains('E')}?'nottake-bc active takeXq': 'nottake-bc takeXq'">
					    	<a th:text="'E.'+${u.userAnswerRecord.E}"></a>
					    	<div class="documentation-check"></div>
					    </div>
					     <div th:class="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}?take-b:take-ecg"><a th:if="${paper.examType}=='考试试卷'">得分：<span  th:text="${u.userAnswerRecord.score}+'&nbsp;&nbsp;'"></span></a><a th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">正确答案：<span th:text="${u.userAnswerRecord.answer}"></span></a></div>
       	  	 		   <div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">答案解析：<span th:text="${u.userAnswerRecord.explain}"></span></div>
       	  	 		   <div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">关联章节：<span th:if="${dm!=null}" th:each="dm : ${u.chapterList}">
	       	  	 	   <span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 	   </span> 
       	  	 		   </div> 
       	  	 		  </li>
					</div>
				</div>
				<div class="nottake-b">
					<div class="paper-d-title" th:if="${paper.judgeCount}" th:text="'判断题(每小题'+${paper.judgeScore}+'分,共'+${paper.judgeCount*paper.judgeScore}+'分)'">三、判断题（每小题5.0分，共25.0分）</div>
					<div class="nottake-ba" th:if="${u.userAnswerRecord.code=='判断题'}" th:each="u:${questionList}">
						<div class="nottake-ba-title" th:text="'('+${u.userAnswerRecord.orderCode}+')'+${u.userAnswerRecord.content}">1、“业务工作谁主管，保密工作谁负责”是保密工作的重要原则。</div>
					    <div th:class="${u.userAnswerRecord.userAnswer.contains('A')}?'nottake-bb active takeXq': 'nottake-bb takeXq'">
					    	A.正确
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:class="${u.userAnswerRecord.userAnswer.contains('B')}?'nottake-bb active takeXq': 'nottake-bb takeXq'">
					    	B.错误
					    	<div class="documentation-check"></div>
					    </div>
					    <div th:class="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}?take-b:take-ecg"><a th:if="${paper.examType}=='考试试卷'">得分：<span  th:text="${u.userAnswerRecord.score}+'&nbsp;&nbsp;'"></span></a><a th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">正确答案：<span th:text="${u.userAnswerRecord.answer}"></span></a></div>
       	  	 		   <div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">答案解析：<span th:text="${u.userAnswerRecord.explain}"></span></div>
       	  	 		   <div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">关联章节：<span th:if="${dm!=null}" th:each="dm : ${u.chapterList}">
	       	  	 	   <span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 	   </span> 
       	  	 		   </div>
					</div>
				</div>
				
						
            	<div class="nottake-b">
            	<div class="paper-d-title" th:if="${paper.askCount}" th:text="简答题">三、判断题（每小题5.0分，共25.0分）</div>
       	  	 		<div class="nottake-ba" th:if="${u.userAnswerRecord.code=='问答题'}" th:each="u:${questionList}">
       	  	 			
       	  	 				<div class="nottake-ba-title" th:text="'('+${u.userAnswerRecord.orderCode}+')'+${u.userAnswerRecord.content}"></div>
       	  	 				<div class="nottake-bd">
       	  	 					<textarea class="nottake-textarea" disabled="disabled" th:text="${u.userAnswerRecord.userAnswer}"></textarea>
       	  	 				</div>
       	  	 				<div th:class="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}?take-b:take-ecg">正确答案：<span th:text="${u.userAnswerRecord.answer}"></span></div>
       	  	 				<div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">答案解析：<span th:text="${u.userAnswerRecord.explain}"></span></div>
       	  	 				<div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">关联章节：
	       	  	 				 <span th:if="${dm!=null}" th:each="dm : ${u.chapterList}">
	       	  	 					<span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 				</span> 
       	  	 				</div>        	  	 			
       	  	 		</div>
       	  	 	</div> 
       	  	 	<div class="nottake-b">
            	<div class="paper-d-title" th:if="${paper.fillCount}" th:text="'填空题(每小题'+${paper.fillScore}+'分,共'+${paper.fillCount*paper.fillScore}+'分)'">三、判断题（每小题5.0分，共25.0分）</div>
       	  	 		<div class="nottake-ba" th:if="${u.userAnswerRecord.code=='填空题'}" th:each="u:${questionList}">
       	  	 			
       	  	 				<div class="nottake-ba-title" th:text="'('+${u.userAnswerRecord.orderCode}+')'+${u.userAnswerRecord.content}"></div>
       	  	 				<div class="nottake-bd">
       	  	 					<textarea class="nottake-textarea" disabled="disabled" th:text="${u.userAnswerRecord.userAnswer}"></textarea>
       	  	 				</div>
       	  	 				<div th:class="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}?take-b:take-ecg"><a th:if="${paper.examType}=='考试试卷'">得分：<span  th:text="${u.userAnswerRecord.score}+'&nbsp;&nbsp;'"></span></a><a th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">正确答案：<span th:text="${u.userAnswerRecord.answer}"></span></a></div>
       	  	 				<div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">答案解析：<span th:text="${u.userAnswerRecord.explain}"></span></div>
       	  	 				<div class="take-b" th:if="${u.userAnswerRecord.answer!=u.userAnswerRecord.userAnswer}">关联章节：
	       	  	 				 <span th:if="${dm!=null}" th:each="dm : ${u.chapterList}">
	       	  	 					<span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 				</span> 
       	  	 				</div>        	  	 			
       	  	 		</div>
       	  	 	</div> 
			</div>
		</div>
		<script type="text/javascript">
		function relat(url){
			 var diag = new $.Zebra_Dialog({
				 source: {'iframe': {
		                'src':url,
		                'height':800,
		            }},
		            width:900,
		            title:'关联章节'
		        });

		}

		</script>
	</body>
</html>
